#define _CRT_SECURE_NO_WARNINGS 1
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
#define BACKUP_FILE "./backup.dat"
#define BACKUP_DIR "./backup"

#include "util.hpp"
#include<vector>
#include<string>
#include<iostream>
#include"data.hpp"
#include"cloud.hpp"
int main()
{
	//Util::FileUtil fu("./");
	//std::vector<std::string> arr;
	//fu.ScanDirectory(&arr);
	//cloud::DataMannger data(BACKUP_FILE);
	//for (const auto& f : arr)
	//{
	//	Util::FileUtil f1(f);
	//	//std::cout << f << " " << f1.FileName() << " " << f1.FileSize() << " " << f1.LastAccTime();
	//	//std::cout << std::endl;
	//	data.Insert(f1.FileName(), "qweq");
	//}


	//cloud::DataMannger data(BACKUP_FILE);
	//std::string str;
	//data.GetOneByKey("cloud.sln", &str);
	//std::cout << str << std::endl;


	//cloud::DataMannger data(BACKUP_FILE);
	//std::string str;
	//data.GetOneByKey("cloud.sln", &str);
	//std::cout << str << std::endl;

	cloud::Backup b(BACKUP_DIR, BACKUP_FILE);
	b.RunModule();


	return 0;
}